package com.example.administrator.basepro.ui.act;

import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;

import com.example.administrator.basepro.R;
import com.example.administrator.basepro.base.SimpleActivity;
import com.example.administrator.basepro.utils.ActivityUtils;

import butterknife.BindView;
import butterknife.OnClick;

public class MainActivity extends SimpleActivity {

    @BindView(R.id.getSecure)
    Button btn_getSecure;

    @BindView(R.id.submit_secure)
    Button btn_submitSecure;

    @BindView(R.id.toolbar)
    Toolbar toolbar;

    @Override
    protected int getLayout() {
        return R.layout.activity_main;
    }

    @Override
    protected void initEventAndData() {
        setToolBar(toolbar, "通航安全信息管理系统");
    }

    @OnClick({R.id.submit_secure, R.id.getSecure})
    public void onclick(View view) {
        switch (view.getId()) {
            case R.id.submit_secure:
            ActivityUtils.startActivity(SecureInfoOptionsAct.class);
                break;
            case R.id.getSecure:

                ActivityUtils.startActivity(SecureShowActivity.class);

                break;
        }
    }
}
